package com.example.museum.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.museum.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ProductMapper extends BaseMapper<Product> {

    @Select("SELECT COUNT(*) FROM product")
    Integer gettotalProducts();
}
